package com.irs.irsforum.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yihuili
 * @since 2020-02-01
 */
@Data
public class Subject extends Model<Subject> {

    private static final long serialVersionUID = 1L;

    /**
     * 课程id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 课程编号
     */
	@TableField("subject_number")
	private String subjectNumber;
    /**
     * 课程名称
     */
	@TableField("subject_name")
	private String subjectName;
    /**
     * 课程描述
     */
	@TableField("subject_description")
	private String subjectDescription;

	@TableField("subject_img")
	private String subjectImg;
    /**
     * 课程章数
     */
	@TableField("subject_chapter")
	private Integer subjectChapter;
    /**
     * 课时个数
     */
	@TableField("subject_period")
	private Integer subjectPeriod;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Subject{" +
			"id=" + id +
			", subjectNumber=" + subjectNumber +
			", subjectName=" + subjectName +
			", subjectDescription=" + subjectDescription +
			", subjectImg=" + subjectImg +
			", subjectChapter=" + subjectChapter +
			", subjectPeriod=" + subjectPeriod +
			"}";
	}
}
